<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@ include file="/WEB-INF/jspf/links.jspf"%>
<script src="${pageContext.request.contextPath}/resources/js/routes.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><spring:message code="company.menu.search" /></title>
</head>
<body>
	<div id="wrapper">
		<!-- header -->
		<div id="header">
			<%@ include file="/WEB-INF/jspf/header.jspf"%>
		</div>

		<!-- top menu -->
		<div id="menu">
			<%@ include file="/WEB-INF/jspf/menu.jspf"%>
		</div>

		<!-- bodywrap -->
		<div id="bodytop">&nbsp;</div>

		<div id="bodywrap">

			<div class="errors">
				<span id="error1"><spring:message
						code="company.error.form.illegal.start" /></span> <span id="error2"><spring:message
						code="company.error.form.illegal.finish" /></span> <span id="error3"><spring:message
						code="company.error.form.illegal.points" /></span> <span id="cities"><spring:message
						code="company.city.cities" /></span> <span id="distance"><spring:message
						code="company.route.distance" /></span> <span id="priority"><spring:message
						code="company.route.road.priority" /></span> <span id="intensity"><spring:message
						code="company.route.flow.intensity" /></span> <span id="quality"><spring:message
						code="company.route.road.quality" /></span> <span id="width"><spring:message
						code="company.route.road.width" /></span> <span id="speed"><spring:message
						code="company.route.weather.wind.speed" /></span> <span id="temperature"><spring:message
						code="company.route.weather.temperature" /></span> <span id="best"><spring:message
						code="company.route.best.route" /></span> <span id="possible"><spring:message
						code="company.route.possible.route" /></span> <span id="features"><spring:message
						code="company.route.features" /></span> <span id="mps"><spring:message
						code="company.route.mps" /></span> <span id="km"><spring:message
						code="company.route.km" /></span>
			</div>

			<div id="contentbody">
			
			<img src="${pageContext.request.contextPath}/resources/images/loading.gif" id="load"/> 

				<p>
					<spring:message code="company.menu.search" />
				</p>
				<hr>

				<form:form modelAttribute="citiesList">
					<fieldset>
						<legend>
							<spring:message code="company.point.title" />
						</legend>
						<form:label path="">
							<spring:message code="company.point.from" />
						</form:label>
						<form:select path="" items="${citiesList}" name="start" id="start" />
						&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
						<form:label path="">
							<spring:message code="company.point.to" />
						</form:label>
						<form:select path="" items="${citiesList}" name="finish"
							id="finish" />
						<hr>
						<br>
						<button type="button" id="send">
							<spring:message code="company.point.buttom.title" />
						</button>
					</fieldset>
				</form:form>

					<p id="#routes" class="hide" style="margin-top: 10px;">
						<spring:message code="company.route.routes" />
					</p>
					<hr class="hide">
				<div id="result">
				</div>

			</div>

		</div>
		<div id="bodybottom">&nbsp;</div>
		<div id="footer">
			<%@ include file="/WEB-INF/jspf/footer.jspf"%>
		</div>
		<div id="sidemenu">
			<div id="smtop">&nbsp;</div>
			<div id="smtitle">
				<h1>
					<spring:message code="company.menu" />
				</h1>
			</div>
			<ul class="normal">
				<li><a href="${pageContext.request.contextPath}/pages/routes" class="currentpage"><spring:message
							code="company.menu.search" /></a></li>
				<li><a href="${pageContext.request.contextPath}/pages/cities"><spring:message
							code="company.menu.cities" /></a></li>
				<li><a href="${pageContext.request.contextPath}/pages/about"><spring:message code="company.menu.about" /></a></li>
			</ul>
			<%@ include file="/WEB-INF/jspf/adminMenu.jspf"%>
			<div id="smbottom">&nbsp;</div>
		</div>
		<!-- end side menu -->
	</div>
	<!-- end wrapper -->

</body>
</html>